namespace Agro.Models {
        using System;
        using SN.Data;
        
        
        /// <summary>
        /// 表名：T_CONF 主键列：CONF_KEY
        /// </summary>
        [SerializableAttribute()]
        public partial class T_CONF : Entity {
            
            protected String _CONF_KEY;
            
            protected String _CONF_VALUE;
            
            protected String _CONF_NOTE;
            
            public String CONF_KEY {
                get {
                    return this._CONF_KEY;
                }
                set {
                    this.OnPropertyValueChange(_.CONF_KEY, _CONF_KEY, value);
                    this._CONF_KEY = value;
                }
            }
            
            public String CONF_VALUE {
                get {
                    return this._CONF_VALUE;
                }
                set {
                    this.OnPropertyValueChange(_.CONF_VALUE, _CONF_VALUE, value);
                    this._CONF_VALUE = value;
                }
            }
            
            public String CONF_NOTE {
                get {
                    return this._CONF_NOTE;
                }
                set {
                    this.OnPropertyValueChange(_.CONF_NOTE, _CONF_NOTE, value);
                    this._CONF_NOTE = value;
                }
            }
            
            /// <summary>
            /// 获取实体对应的表名
            /// </summary>
            protected override Table GetTable() {
                return new Table<T_CONF>("T_CONF");
            }
            
            /// <summary>
            /// 获取实体中的主键列
            /// </summary>
            protected override Field[] GetPrimaryKeyFields() {
                return new Field[] {
                        _.CONF_KEY};
            }
            
            /// <summary>
            /// 获取列信息
            /// </summary>
            protected override Field[] GetFields() {
                return new Field[] {
                        _.CONF_KEY,
                        _.CONF_VALUE,
                        _.CONF_NOTE};
            }
            
            /// <summary>
            /// 获取列数据
            /// </summary>
            protected override object[] GetValues() {
                return new object[] {
                        this._CONF_KEY,
                        this._CONF_VALUE,
                        this._CONF_NOTE};
            }
            
            /// <summary>
            /// 给当前实体赋值
            /// </summary>
            protected override void SetValues(IRowReader reader) {
                if ((false == reader.IsDBNull(_.CONF_KEY))) {
                    this._CONF_KEY = reader.GetString(_.CONF_KEY);
                }
                if ((false == reader.IsDBNull(_.CONF_VALUE))) {
                    this._CONF_VALUE = reader.GetString(_.CONF_VALUE);
                }
                if ((false == reader.IsDBNull(_.CONF_NOTE))) {
                    this._CONF_NOTE = reader.GetString(_.CONF_NOTE);
                }
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(T_CONF).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return false;
            }
            
            public class _ {
                
                /// <summary>
                /// 表示选择所有列，与*等同
                /// </summary>
                public static AllField All = new AllField<T_CONF>();
                
                /// <summary>
                /// 字段名：CONF_KEY - 数据类型：String
                /// </summary>
                public static Field CONF_KEY = new Field<T_CONF>("CONF_KEY");
                
                /// <summary>
                /// 字段名：CONF_VALUE - 数据类型：String
                /// </summary>
                public static Field CONF_VALUE = new Field<T_CONF>("CONF_VALUE");
                
                /// <summary>
                /// 字段名：CONF_NOTE - 数据类型：String
                /// </summary>
                public static Field CONF_NOTE = new Field<T_CONF>("CONF_NOTE");
            }
        }
    }
    